package com.bgrconsulting.stockorderentry.service.converter.response;

import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.response.EquityOrderResponse;
import com.bgrconsulting.stockorderentry.service.converter.MessageConverter;

@XmlRootElement(name = "EquityOrderResponse")
public class EquityOrderResponseConverter {
	private EquityOrderResponse enity;
	
	public EquityOrderResponseConverter(EquityOrderResponse equityOrderResponse) {
		this.enity = equityOrderResponse;
	}
	
	public void EquityOrderResponse() {
		this.enity = null;
	}
	
	@XmlElement(name = "accountId")
	public String getAccountId() {
		return enity.getAccountId();
	}
	
	@XmlElement(name = "allOrNone")
	public String getAllOrNone() {
		return enity.getAllOrNone();
	}
	
	@XmlElement(name = "estimatedCommission")
	public Double getEstimatedCommission(){
		return enity.getEstimatedCommission();
	}
	
	@XmlElement(name = "estimatedTotalAmount")
	public Double getEstimatedTotalAmount() {
		return enity.getEstimatedTotalAmount();
	}
	
	@XmlElement(name = "msgDesc")
	public MessageConverter getMessage() {
		
		MessageConverter msgConverter = new MessageConverter(enity.getMessage());
		return msgConverter;
	}
	
	
	
	@XmlElement(name = "OrderNum")
	public String getOrderNum() {
		return enity.getOrderNum();
	}
	
	@XmlElement(name = "PreviewId")
	public String getPreviewId() {
		return enity.getPreviewId();
	}
	
	
	@XmlElement(name = "quanity")
	public int getQuanity() {
		return enity.getQuanity();
	}
	
	@XmlElement(name = "reserveOrder")
	public boolean getReserveOrder() {
		return enity.getReserveOrder();
	}
	
	@XmlElement(name = "reserveQuanity")
	public int getReserveQuanity() {
		return enity.getReserveQuanity();
	}
	
	@XmlElement(name = "orderTerm")
	public String getOrderTerm() {
		return enity.getOrderTerm();
	}
	
	@XmlElement(name = "limitPrice")
	public Double getLimitPrice() {
		return enity.getLimitPrice();
	}
	
	@XmlElement(name = "stopPrice")
	public Double getStopPrice() {
		return enity.getStopPrice();
	}
	
	@XmlElement(name = "symbolDesc")
	public String getSymbolDesc() {
		return enity.getSymbolDesc();
	}
	
	@XmlElement(name = "symbol")
	public String getSymbol() {
		return enity.getSymbol();
	}
	
	@XmlElement(name = "orderAction")
	public String getOrderAction() {
		return enity.getOrderAction();
	}
	
	@XmlElement(name = "orderTime")
	public Date getOrderTime() {
		return enity.getOrderTime();
	}
	
	@XmlElement(name = "priceType")
	public String getPriceType() {
		return enity.getPriceType();
	}
	
	@XmlElement(name = "routingDestination")
	public String getRoutingDestination() {
		return enity.getRoutingDestination();
	}
}
